//
//  TouchView.m
//  03-UIPesponder
//
//  Created by 李昊林 on 16/7/18.
//  Copyright © 2016年 李昊林. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
//继承与 UIResponder
//Appdelegate UIView UIViewController
//
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    NSLog(@"self.view = %@",self.nextResponder);
    NSLog(@"ViewController = %@",self.nextResponder.nextResponder);
    NSLog(@"Window = %@",self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIApplication = %@",self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate = %@",self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
//    [super touchesBegan:touches withEvent:event];
//   NSLog(@"%@ %s", [self class] ,__FUNCTION__);
}


- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@ %s", [self class] ,__FUNCTION__);

}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@ %s", [self class] ,__FUNCTION__);


}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
